import request from "@/utils/request";
import type { TopCate } from "@/types/cate";
import type { ResponseType } from "@/types/response";

enum Enum {
    topCategory = "/category/top"
}

/*获取所有分类的数据接口*/
export const fetchCateListAPI = (): Promise<ResponseType<TopCate[]>> => request.get<TopCate, ResponseType<TopCate[]>>(Enum.topCategory);
